package com.though.utils.exception;

import com.though.utils.result.ResultCode;

public class SysException extends RuntimeException {

	private static final long serialVersionUID = -7672263973256082955L;

	private int code;

	private String msg;

	public SysException() {
        super();
        this.code = ResultCode.ERROR.getCode();
        this.msg = "请求失败！";
    }
 
    public SysException(String msg) {
        super();
        this.code = ResultCode.ERROR.getCode();
        this.msg = msg;
    }
 
    public SysException(int code, String msg) {
        super();
        this.code = code;
        this.msg = msg;
    }
	
	
	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}